package com.favccxx.message.domain.message.entity.router;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MessageRouterRepo extends MongoRepository<MessageRouter, String> {

    /**
     * 根据状态查询路由列表
     *
     * @param status
     * @return
     */
    List<MessageRouter> findByStatus(boolean status);
}
